

import pytest

def login_data():
    data=[('wang','wang123'),('li','li123'),('zhao','zhao123')]
    return data


class Test_para():
    @pytest.mark.parametrize('username,password',login_data())
    def test_p(self,username,password):
        print('用户名：%s，密码：%s 登录成功' %(username,password))
        assert True





